<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body ng-app="myApp">
	<div class="box" my-btn></div>
	<script src="angular.js"></script>
	<script>
		var app =angular.module("myApp",[]);
		app.directive("myBtn",[function(){
			return {
				template:'<div>这是通过template添加的模块</div>',
			}
		}]);
	</script>
</body>
</html>
